<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title></title>
	<SCRIPT th:src="@{/js/jquery-3.1.1.js}"></SCRIPT>
	<link rel="stylesheet" th:href="@{/bootstrap-3.3.7-dist/css/bootstrap.min.css}" />
	<script th:src="@{/bootstrap-3.3.7-dist/js/bootstrap.min.js}"></script>
</head>
<body>


<!--页面-->
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<button type="button" class="btn btn-success firstpage">首页</button>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
            <h1 style="text-align: center;">注册</h1>
        </div>
		</div>
		<div class="row">
			  <div class="col-md-6 col-md-offset-3">
				  <span  style="color: red" th:text="${#strings.isEmpty(msg)?'':msg}"></span>
			<form th:action="@{/regist}" method="post">
  <div class="form-group">
    <label for="exampleInputEmail1">用户名</label>
    <input type="text" class="form-control username" id="exampleInputEmail1" name="username" placeholder="Username">
    <span class="help-block"></span>
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">密码</label>
    <input type="password" class="form-control" name="password" id="exampleInputPassword1" placeholder="Password">
  </div>
  <button type="submit" class="btn btn-default" >Submit</button>
</form>
		</div>
	</div>
		
	</div>
	<script type="text/javascript">
		$(function () {
			$(".firstpage").click(function () {
				window.location="/";
			})
		})


	</script>

</body>
</html>